<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="a" v-bind="count"></div>
    <button v-on="click:add">+1</button>

    <script src="./vue.js"></script>
    <script>

        const config = {
            data () {
                return {
                    count: 0,
                    visible: false,
                };
            },
            beforeMount () {
                console.log('beforeMount');
            },
            mounted () {
                console.log('mounted');
            },
            beforeUpdate () {
                console.log('beforeUpdate');
            },
            updated () {
                console.log('updated');
            },
            methods: {
                add () {
                    this.count++;
                },
            },
        };

        vue(config);

    </script>
</body>
</html>